package com.xfp.method;


import java.math.BigDecimal;

public class pageTotal {

    public static Long total(Long n,Integer m){
        //计算总页数
        Double n2 = Math.ceil((n+0.0)/m);
        BigDecimal value = BigDecimal.valueOf(n2);
        Long l = value.longValue();
        return l;
    }
}
